import getlink from "@/api/getapi.js"
let HomeHotNavM = {
    state:{
        homehotnav:""
    },
    mutations:{
        UPHOTTVDATA(state,payload){
            state.homehotnav=payload
        }
    },
    actions:{
        LINK_HOMEHOTNAV_DATA(conhottv,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.homehotnav,"homehotnav")
                conhottv.commit("UPHOTTVDATA",ok.data.homehotnav)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default HomeHotNavM;
